﻿<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="CloningPlugin.aspx.cs" Inherits="EPiCloner.Templates.Plugins.Cloning.CloningPlugin" %>
<%@ Register TagPrefix="epi" Assembly="EPiServer" Namespace="EPiServer.Web.WebControls" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Deep Cloning</title>
        <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/App_Themes/Default/styles/system.css") %>"/>
        <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/App_Themes/Default/styles/ToolButton.css") %>" />
        <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("/css/framework.css") %>" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="actionWindowBox">
    <h3>Deep cloning</h3>
    <table class="epi-formLayout" cellspacing="0" style="display:block;">
       <tbody>
       <tr id="PageNameRow">
					<th class="EP-tableCaptionCell"><span title="Name of the page, which will be used, for example, as a heading in the menus.">Name</span></th>
					<td><input id="inputName" runat="server" maxlength="255" class="episize240 textField" type="text"/></td>
		</tr>
		<tr id="PageToCloneRow">
			<th class="EP-tableCaptionCell"><span>Page to clone</span></th>
			<td><div class="EP-requiredField">
				<epi:InputPageReference runat="server" id="pageToClone" />
			</div></td>
		</tr>
        <tr id="PasteUnderRow">
			<th class="EP-tableCaptionCell"><span>Paste as a child of</span></th>
			<td><div class="EP-requiredField">
				<epi:InputPageReference runat="server" id="newPageParent" />
			</div></td>
		</tr>
		<tr id="LanguageRow">
			<th class="EP-tableCaptionCell"><span>Language branch</span></th>
			<td><epi:InputLanguage id="inputLanguage" runat="server"/></td>
		</tr>
		<tr id="ShouldPublishRow">
			<th class="EP-tableCaptionCell"><span>Publish</span></th>
			<td><input id="cbShouldPublish" name="ShouldPublish" runat="server" checked="checked" type="checkbox"/></td>
		</tr>
		<tr id="ShouldCloneWithDescendantsRow">
			<th class="EP-tableCaptionCell"><span>Clone with descendants</span></th>
			<td><input id="cbShouldCloneWithDescendants" runat="server" checked="checked" type="checkbox"/></td>
		</tr>
		<tr id="ShouldSuppressExceptionsRow">
			<th class="EP-tableCaptionCell"><span>Suppress Exceptions</span></th>
			<td><input id="cbShouldSuppressExceptions" runat="server" name="ShouldSuppressExceptions" checked="checked" type="checkbox"/></td>
		</tr>
        <tr id="ShouldUpdatePageReferences">
			<th class="EP-tableCaptionCell"><span>Update Page References</span></th>
			<td><input id="cbShouldUpdarePageReferences" runat="server" checked="checked" type="checkbox"/></td>
		</tr>
        <tr id="DisablePageEvents">
			<th class="EP-tableCaptionCell"><span>Disable page eventss</span></th>
			<td><input id="cbDisablePageEvents" runat="server" checked="checked" type="checkbox"/></td>
		</tr>
        <tr>
        <td>
            <asp:Button ID="btnSubmit" Text="Clone" runat="server" OnClick="BtnSubmitClicked" />
        </td>
            <td></td>
        </tr>
       </tbody>
     </table>
     <div class="resultInfo">
        <strong><asp:Literal ID="litResults" runat="server"></asp:Literal></strong>
    </div>
    </div>
<script type="text/javascript" src="<%= EPiServer.UriSupport.ResolveUrlFromUtilBySettings("javascript/episerverscriptmanager.js") %>"></script>
<script type="text/javascript" src="<%= EPiServer.UriSupport.ResolveUrlFromUIBySettings("javascript/system.js") %>"></script>
<script type="text/javascript" src="<%= EPiServer.UriSupport.ResolveUrlFromUIBySettings("javascript/system.aspx") %>"></script>
    </form>
</body>
</html>
